package com.dzx.scala.dzxbootscala.service

import java.lang

import com.dzx.scala.dzxbootscala.dao.MetaTableDao
import com.dzx.scala.dzxbootscala.entity.MetaTable
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/**
  * @author DuanZhaoXu
  * @ClassName:
  * @Description:
  * @date 2018年12月20日 17:19:48
  */

@Service
class MetaTableService  @Autowired () (metaTableDao: MetaTableDao){



  def  save(metaTable:MetaTable)={
        metaTableDao.save(metaTable);
  }

  def  query(): lang.Iterable[MetaTable] ={
      metaTableDao.findAll()
  }

  def  update(metaTable:MetaTable)={
    metaTableDao.save(metaTable);
  }

  def  delete(id:Integer)={
     metaTableDao.delete(id)
  }

}
